package net.hn.hnms.biz.cockpit.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.compress.utils.Lists;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ThreeViolationsVo {

    private Integer total;

    private List<OptionVo> list;

    public Integer getTotal() {
        if (total == null) {
            total = 0;
        }
        return total;
    }

    public List<OptionVo> getList() {
        if (list == null) {
            list = Lists.newArrayList();
        }
        return list;
    }
}
